/* 短视频页面样式 */
.short-video-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  overflow: hidden;
  z-index: 1000;
}

/* 视频容器 */
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 视频项 */
.video-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  z-index: 1;
}

/* 当前激活的视频 */
.video-item.active {
  opacity: 1;
  z-index: 10;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

/* 上一个视频 */
.video-item.prev {
  transform: translateY(-100%);
  z-index: 5;
}

/* 下一个视频 */
.video-item.next {
  transform: translateY(100%);
  z-index: 5;
}

/* 视频元素 */
.video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #000;
  filter: brightness(1.05);
}

/* 返回按钮 */
.back-btn {
  position: absolute;
  top: 20px;
  left: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 100;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.back-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}

/* 大播放按钮容器 */
.play-button-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  animation: fadeIn 0.3s ease;
}

/* 大播放按钮 */
.play-button-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 44, 85, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 4px 12px rgba(255, 44, 85, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 4px 12px rgba(255, 44, 85, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 4px 20px rgba(255, 44, 85, 0.6); }
  100% { transform: scale(1); box-shadow: 0 4px 12px rgba(255, 44, 85, 0.4); }
}

.play-button-large:hover {
  transform: scale(1.1);
  background-color: rgba(255, 44, 85, 0.9);
}

/* 抖音号水印 */
.tiktok-id {
  position: absolute;
  bottom: 90px;
  right: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 15;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* 视频信息 */
.video-info {
  position: absolute;
  bottom: 120px;
  left: 15px;
  right: 70px;
  color: #fff;
  z-index: 15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* 用户信息 */
.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 25px;
  padding: 5px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 用户头像 */
.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-right: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* 用户名 */
.username {
  font-weight: bold;
  font-size: 18px;
  margin-right: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* 关注按钮 */
.follow-btn {
  background-color: #ff2c55;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 44, 85, 0.4);
  transition: all 0.2s ease;
}

.follow-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 44, 85, 0.6);
}

/* 已关注状态 */
.follow-btn.following {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.follow-btn.following:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 视频描述 */
.video-desc {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  background-color: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  max-width: 90%;
}

/* 视频音乐 */
.video-music {
  display: flex;
  align-items: center;
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  background-color: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: inline-block;
}

/* 音乐图标 */
.music-icon {
  margin-right: 5px;
  font-size: 18px;
  animation: rotate 3s linear infinite;
  display: inline-block;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 视频操作栏 */
.video-actions {
  position: absolute;
  right: 15px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 15;
}

/* 操作项 */
.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.action-item:hover {
  transform: scale(1.1);
}

/* 操作图标 */
.action-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.action-icon:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* 已点赞状态 */
.action-item.liked .like-icon {
  color: #ff2c55;
}

.action-item.liked .like-icon svg path {
  fill: #ff2c55;
}

/* 点赞动画 */
@keyframes likeAnimation {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.action-item.liked .like-icon {
  animation: likeAnimation 0.5s ease;
}

/* 操作计数 */
.action-count {
  color: #fff;
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 进度条容器 */
.progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: 15;
}

/* 进度条 */
.progress-bar {
  height: 100%;
  background-color: #ff2c55;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(255, 44, 85, 0.6);
}

/* 滑动提示 */
.swipe-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 16px;
  z-index: 30;
  animation: fadeOut 1s forwards;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* 上滑提示 */
.swipe-hint.up {
  transform: translate(-50%, -100px);
}

/* 下滑提示 */
.swipe-hint.down {
  transform: translate(-50%, 100px);
}

/* 加载指示器 */
.loading-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  z-index: 15;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* 加载动画 */
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

/* 加载文字 */
.loading-text {
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 引导覆盖层 */
.guide-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 引导内容 */
.guide-content {
  background-color: white;
  padding: 30px;
  border-radius: 16px;
  max-width: 80%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* 引导标题 */
.guide-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 22px;
  color: #333;
}

/* 引导文字 */
.guide-content p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #666;
}

/* 引导按钮 */
.guide-btn {
  background-color: #ff2c55;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(255, 44, 85, 0.4);
  transition: all 0.2s ease;
}

.guide-btn:hover {
  background-color: #ff1a48;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 44, 85, 0.5);
}

/* 评论面板 */
.comment-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background-color: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 评论头部 */
.comment-header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* 评论标题 */
.comment-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

/* 关闭按钮 */
.close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.close-btn:hover {
  background-color: #f5f5f5;
}

/* 评论列表 */
.comment-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background-color: #f9f9f9;
}

/* 评论项 */
.comment-item {
  display: flex;
  margin-bottom: 20px;
  background-color: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.comment-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 评论头像 */
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
  border: 2px solid #f0f0f0;
}

/* 评论内容 */
.comment-content {
  flex: 1;
}

/* 评论用户 */
.comment-user {
  font-weight: bold;
  margin-bottom: 6px;
  color: #333;
  font-size: 15px;
}

/* 评论文本 */
.comment-text {
  line-height: 1.5;
  color: #333;
  font-size: 14px;
  margin-bottom: 8px;
  word-break: break-word;
}

/* 评论操作区域 */
.comment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: #999;
}

/* 评论时间 */
.comment-time {
  color: #999;
}

/* 评论按钮组 */
.comment-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 点赞按钮 */
.like-btn {
  background: transparent;
  border: none;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.like-btn:hover {
  background-color: rgba(255, 44, 85, 0.08);
  color: #ff2c55;
}

.like-btn i {
  font-size: 14px;
}

/* 回复按钮 */
.reply-btn {
  background: transparent;
  border: none;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.reply-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #333;
}

/* 二级评论列表 */
.reply-list {
  margin-top: 12px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 2px solid #f0f0f0;
}

/* 二级评论项 */
.reply-item {
  display: flex;
  padding: 12px;
  margin-bottom: 12px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

/* 二级评论头像 */
.reply-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
  border: 1px solid #eee;
}

/* 二级评论内容 */
.reply-content {
  flex: 1;
}

/* 二级评论用户 */
.reply-user {
  font-weight: bold;
  margin-bottom: 4px;
  color: #333;
  font-size: 14px;
}

/* 二级评论文本 */
.reply-text {
  line-height: 1.5;
  color: #333;
  font-size: 13px;
  margin-bottom: 6px;
  word-break: break-word;
}

/* 二级评论操作区域 */
.reply-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
}

/* 二级评论时间 */
.reply-time {
  color: #999;
}

/* 二级评论按钮组 */
.reply-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 三级评论列表 */
.subreply-list {
  margin-top: 10px;
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid #f0f0f0;
}

/* 三级评论项 */
.subreply-item {
  display: flex;
  padding: 10px;
  margin-bottom: 8px;
  background-color: #f2f2f2;
  border-radius: 6px;
}

/* 三级评论头像 */
.subreply-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
  border: 1px solid #eee;
}

/* 三级评论内容 */
.subreply-content {
  flex: 1;
}

/* 三级评论用户 */
.subreply-user {
  font-weight: bold;
  margin-bottom: 3px;
  color: #333;
  font-size: 13px;
}

/* 三级评论文本 */
.subreply-text {
  line-height: 1.4;
  color: #333;
  font-size: 12px;
  margin-bottom: 4px;
  word-break: break-word;
}

/* 三级评论操作区域 */
.subreply-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #999;
}

/* 三级评论时间 */
.subreply-time {
  color: #999;
}

/* 评论表单 */
.comment-form {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-top: 1px solid #eee;
  background-color: #fff;
}

/* 回复信息 */
.reply-info {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #666;
}

.reply-username {
  font-weight: bold;
  color: #333;
  margin: 0 4px;
}

/* 取消回复按钮 */
.cancel-reply {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cancel-reply:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #666;
}

/* 评论输入框 */
.comment-input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 14px;
  margin-bottom: 10px;
}

.comment-input:focus {
  border-color: #ff2c55;
  box-shadow: 0 0 0 2px rgba(255, 44, 85, 0.2);
}

/* 评论提交按钮 */
.comment-submit {
  width: 100%;
  background-color: #ff2c55;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-weight: bold;
  transition: all 0.2s ease;
  cursor: pointer;
}

.comment-submit:hover:not(:disabled) {
  background-color: #ff1a48;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 44, 85, 0.3);
}

/* 禁用的评论提交按钮 */
.comment-submit:disabled {
  background-color: #f9a8b9;
  cursor: not-allowed;
}

/* 空评论提示 */
.comment-empty {
  padding: 30px;
  text-align: center;
  color: #999;
  font-size: 15px;
}

/* 取消关注确认对话框覆盖层 */
.confirm-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}

/* 确认对话框 */
.confirm-dialog {
  background-color: white;
  border-radius: 16px;
  width: 80%;
  max-width: 320px;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* 确认对话框标题 */
.confirm-dialog-title {
  padding: 24px 20px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  border-bottom: 1px solid #eee;
}

/* 确认对话框按钮容器 */
.confirm-dialog-buttons {
  display: flex;
  border-top: 1px solid #eee;
}

/* 确认对话框按钮 */
.confirm-dialog-buttons button {
  flex: 1;
  padding: 16px 0;
  border: none;
  background: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.confirm-dialog-buttons button:hover {
  background-color: #f5f5f5;
}

/* 取消按钮 */
.confirm-dialog-cancel {
  color: #333;
  border-right: 1px solid #eee;
}

/* 确认按钮 */
.confirm-dialog-confirm {
  color: #ff2c55;
  font-weight: bold;
}

.confirm-dialog-confirm:hover {
  background-color: rgba(255, 44, 85, 0.05) !important;
}

/* 移动设备适配 */
@media (max-width: 480px) {
  .comment-panel {
    height: 80%;
  }
  
  .comment-item {
    padding: 12px;
  }
  
  .comment-avatar {
    width: 36px;
    height: 36px;
  }
  
  .reply-avatar {
    width: 28px;
    height: 28px;
  }
}

/* 平板设备适配 */
@media (min-width: 768px) {
  .comment-panel {
    width: 400px;
    left: 50%;
    transform: translateX(-50%);
    height: 70%;
    border-radius: 20px;
    margin-bottom: 20px;
    animation: scaleUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  @keyframes scaleUp {
    from { transform: translateX(-50%) scale(0.9); opacity: 0; }
    to { transform: translateX(-50%) scale(1); opacity: 1; }
  }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media screen and (min-width: 768px) {
  .video-item video {
    max-width: 420px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
  
  .video-container {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .video-item {
    width: 420px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .video-item.prev {
    transform: translate(-50%, -100%);
  }
  
  .video-item.next {
    transform: translate(-50%, 100%);
  }
} 